package com.design.pattern.decorator.abstracts;

import com.design.pattern.decorator.service.Drink;

/**
 * 装饰器:1、实现抽象组件接口 2、持有抽象接口的引用
 */
public abstract class Decrorator implements Drink {

  private Drink drink;

  public  Decrorator(Drink drink){
      this.drink=drink;
  }

    @Override
    public double money() {
        return drink.money();
    }

    @Override
    public String desc() {
        return drink.desc();
    }
}
